import { Column, Entity, Index } from "typeorm";

@Index("sys_role_permission_pkey", ["permId", "roleId"], { unique: true })
@Entity("sys_role_permission", { schema: "public" })
export class SysRolePermission {
    @Column("bigint", { primary: true, name: "role_id" })
    roleId!: string;

    @Column("bigint", { primary: true, name: "perm_id" })
    permId!: string;
}
